<template>
	<view class="wrapper">
		<view class="navigate">
			<view class="left">
				<uni-icons type="left" size="27" color="#000" @click="navback"></uni-icons>
			</view>
			<view class="center">个股异动</view>
			<view class="right">
				<text>自选股</text>
				<switch color="#0448AC" style="transform:scale(0.7)"/>
			</view>
		</view>
		<view class="block" style="height: 44px;"></view>
		<view class="checkmarket">
			<view class="type-wrapper">
				<scroll-view class="view-h" scroll-x="true" >
					<view class="tag-view">
						<uni-tag text="大单买入" type="default" :circle="true"></uni-tag>
					</view>
					<view class="tag-view">
						<uni-tag text="大单卖出" type="default" :circle="true"></uni-tag>
					</view>	
					<view class="tag-view">
						<uni-tag text="快速拉升" type="default" :circle="true"></uni-tag>
					</view>	
					<view class="tag-view">
						<uni-tag text="盘中打压" type="default" :circle="true"></uni-tag>
					</view>	
					<view class="tag-view">
						<uni-tag text="盘中涨跌" type="default" :circle="true"></uni-tag>
					</view>	
				</scroll-view>
			</view>
			<view class="marketlist">
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss">
	page{
		width: 100%;
		height: 100%;
		background-color: #fff;
	}
	.wrapper {
		height: 100%;
		box-sizing: border-box;
	}
	.navigate{
		background-color: rgb(255, 255, 255);
		color: rgb(0, 0, 0);
		position: fixed;
		left: var(--window-left);
		right: var(--window-right);
		height: 44px;
		height: calc(44px + constant(safe-area-inset-top));
		height: calc(44px + env(safe-area-inset-top));
		padding: 7px 3px;
		padding-top: calc(7px + constant(safe-area-inset-top));
		padding-top: calc(7px + env(safe-area-inset-top));
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		align-items: center;
		overflow: hidden;
		-webkit-box-pack: justify;
		-webkit-justify-content: space-between;
		justify-content: space-between;
		box-sizing: border-box;
		z-index: 998;
		-webkit-transition-property: all;
		transition-property: all;
		font-weight: bold;
		
		.left{
			font-weight: 500;
			margin: 0 4rpx;
		}
		.center{
			position: absolute;
			top: 0;
			left: 50%;
			margin-left: -274rpx;
			width: 548rpx;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			text-align: center;
		}
		.right{
			width: 27%;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			font-size: 24rpx;
			color: #262626;
		}
	}
	.checkmarket{
		background-color: #fff;
		padding: 10rpx 33rpx 0;
		margin-bottom: 32rpx;
		.title{
			font-weight: bold;
			font-size: 28rpx;
			color: #262626;
			position: relative;
			padding-left: 24rpx;
		}
		.title::before{
			content: '';
			position: absolute;
			top: 10rpx;
			left: 0;
			z-index: 1;
			width: 6rpx;
			height: 24rpx;
			background-color: #08377D;
			border-radius: 2rpx;
		}
		.type-wrapper{
			height: 66rpx;
			margin-top: 24rpx;
			display: flex;
			justify-content: space-between;
			.tag-view{
				display: inline-block;
				margin-right: 50rpx;
			}
			.view-h{
				white-space: nowrap;
				width: 100%;
			}
		}
		.marketlist{
			.marketlist-li{
				height: 104rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid #E5E5E5;
				.info1{
					  .name{
					  	font-weight: bold;
					  	font-size: 28rpx;
					  	color: #262626;
					  }
					  .number{
					  	font-weight: 500;
					  	font-size: 20rpx;
					  	color: #999999;
					  }
				}
				.info2{
					font-weight: bold;
					font-size: 28rpx;
					color: #2A9321;
				}
				.info3{
					width: 146rpx;
					height: 48rpx;
					line-height: 48rpx;
					text-align: center;
					color: #2A9321;
					border-radius: 8rpx;
					font-weight: bold;
					font-size: 28rpx;
					color: #FFFFF;
				}
				
			}
			.addaction{
				display: flex;
				justify-content: center;
				align-items: center;
				margin: 57rpx auto;
				font-weight: 500;
				font-size: 28rpx;
				color: #999999;
				image{
					width: 32rpx;
					height: 32rpx;
					margin-right: 12rpx;
				}
			}
		}
	}
</style>